package com.wiloon.java8x.dataImport;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/5/27.
 */
public class ExcelColumn {
    private int targetColumnIndex;
    private int titleRowIndex;

    private List<String> separators;

    public ExcelColumn() {
    }

    public ExcelColumn(int columnIndex) {
        this.targetColumnIndex = columnIndex;
    }

    public int getTargetColumnIndex() {
        return targetColumnIndex;
    }

    public void setTargetColumnIndex(int targetColumnIndex) {
        this.targetColumnIndex = targetColumnIndex;
    }

    public int getTitleRowIndex() {
        return titleRowIndex;
    }

    public void setTitleRowIndex(int titleRowIndex) {
        this.titleRowIndex = titleRowIndex;
    }

    public List<String> getSeparators() {
        return separators;
    }

    public void setSeparators(List<String> separators) {
        this.separators = separators;
    }

    public void addSeparator(String separator) {
        if (separators == null) {
            separators = new ArrayList<>();
        }
        separators.add(separator);
    }
}
